import { Logger } from "winston";

declare global {
  namespace Express {
    /**
     * @description 扩展 Express Request 对象
     */
    interface Request {
      /**
       * @property {Logger} logger - 日志记录器实例
       */
      logger?: Logger;
    }

    interface User {
      id: string;
      username: string;
      role: string;
      // 添加其他用户属性...
    }
  }
}

export {};
